import request from '../request.js';
export async function fetchQuestions({ page, size }) {
    try {
        const response = await request.get(`/review/list`, {
            page,
            size
        });
        return response;
    } catch (error) {
        console.error("获取题目失败:", error);
        return { total: 0, items: [] }; // 发生错误时返回空数据
    }
}
export async function fetchreviewedQuestions({ page, size }) {
    try {
        const response = await request.get(`/review/reviewed`, {
            page,
            size
        });
        return response;
    } catch (error) {
        console.error("获取题目失败:", error);
        return { total: 0, items: [] }; // 发生错误时返回空数据
    }
}